﻿@model ClientApp.Models.ChangePrivacyModel

@{
    ViewBag.Title = "Private Room";
}

@using (Html.BeginForm("SubmitChanges", "Private"))
{
    <div>
        <div style="text-align: center; margin: 50px 0;">
            <input type="submit" value="Save" />
        </div>
    </div>
    
    <p>@User.Identity.Name, please keep us up-to-date with your personal details</p>
    
    @Html.ValidationSummary(true, "Please, correct the errors.")
    
    <div class="editor-label">
        @Html.LabelFor(m => m.Email)
    </div>
    
    <div class="editor-field">
        @Html.TextBoxFor(m => m.Email)
        @Html.ValidationMessageFor(m => m.Email)
    </div>
    
    <div class="editor-label">
        @Html.LabelFor(m => m.OldPassword)
    </div>
    
    <div class="editor-field">
        @Html.PasswordFor(m => m.OldPassword)
        @Html.ValidationMessageFor(m => m.OldPassword)
    </div>

    <div class="editor-label">
        @Html.LabelFor(m => m.NewPassword)
    </div>
    
    <div class="editor-field">
        @Html.PasswordFor(m => m.NewPassword)
        @Html.ValidationMessageFor(m => m.NewPassword)
    </div>
    
    <div class="editor-label">
        @Html.LabelFor(m => m.ConfirmPassword)
    </div>
    
    <div class="editor-field">
        @Html.PasswordFor(m => m.ConfirmPassword)
        @Html.ValidationMessageFor(m => m.ConfirmPassword)
    </div>
    
}


